package config

import "time"

const (
	//MysqlDb = "root:root@tcp(127.0.0.1:3306)/test_gorm?charset=utf8mb4&parseTime=true"     //mysql配置信息
	MysqlDb = "root:Sch20020222@tcp(129.211.69.41:3306)/test_gorm?charset=utf8mb4&parseTime=true" //mysql配置信息

	/* redis 相关配置信息*/
	RedisAddr     = "129.211.69.41:6379"
	RedisPassword = "Sch20020222"
	RedisDB       = 0

	// SecretKey 生成token密钥
	SecretKey = "123456"

	//TokenExpireDuration 全局变量：Token 的过期时间
	//TokenExpireDuration = 14 * 24 * time.Hour

	//TokenExpireDuration 全局变量：Token 的过期时间
	TokenExpireDuration = 20 * time.Hour

	// TeamCaptain 团队队长
	TeamCaptain uint64 = 1

	// TeamMember 团队成员
	TeamMember uint64 = 2
)

// Port 定义端口号
var Port uint32 = 1025

// HostPortPtr 全局指针变量，用于分配端口号
var HostPortPtr *uint32 = &Port
